const { merge } = require("webpack-merge");
const webpackBase = require("./webpack.base");
const webpackLoader = require("./webpack.loader");
const webpackPlugin = require("./webpack.plugin");
const webpackServer = require("./webpack.server");
const pk = require("../package.json");

const param = {
  isDev: false,
  isPro: true,
  inputRootDir: "../view",
  outputRootDir: "../dist",
  pkgRootDir: "../packages",
  pkRootDir: "../production-backups",
  pkName: pk.name,
  pkVersion: pk.version,
};

module.exports = merge(webpackBase(param), webpackLoader(param), webpackPlugin(param));
